package com.tlibrary.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author：wcc
 * @Description：
 * @Date：Create in: 2019/4/24--6:53
 */
@Component
@Mapper
public interface AnsquestionsMapper {
    void insertsub(HashMap hashMap);

    List<Map<String,String>> getAllANS(HashMap hashMap);
    @Delete("delete from ansquestions where  ID = #{id,jdbcType=VARCHAR}")
    void deletebyid(String id);
    @Update("update ansquestions set content=#{title,jdbcType=VARCHAR} , ans=#{ans,jdbcType=VARCHAR},difficulty=#{nd,jdbcType=VARCHAR} where id=#{ID,jdbcType=VARCHAR} ")
    void updateans(HashMap hashMap);
}
